package com.neil.dynamic.manage.respository;

import com.neil.dynamic.manage.entity.GatewayRoutes;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  路由管理持久操做类
 * @ProjectName:
 * @Package:        com.neil.dynamic.manage.respository
 * @ClassName:      GatewayRoutesMapper
 * @Description:    路由管理持久操做类
 * @Author:         Neil.Zhou
 * @CreateDate:     2019/10/14 17:50
 * @UpdateUser:     Neil.Zhou
 * @UpdateDate:     2019/10/14 17:50
 * @UpdateRemark:   The modified content
 * @Version:        1.0
 * <p>Copyright: Copyright (c) 2019/10/14</p>
 *
 */
@Repository
public interface GatewayRoutesMapper {
    int deleteByPrimaryKey(@Param("id") Long id, @Param("isDel") boolean isDel);

    int enableById(@Param("id") Long id, @Param("isEbl") boolean isEbl);

    int insert(GatewayRoutes record);

    int insertSelective(GatewayRoutes record);

    GatewayRoutes selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GatewayRoutes record);

    int updateByPrimaryKey(GatewayRoutes record);

    List<GatewayRoutes> getRoutes(GatewayRoutes route);
}